<template>
  <div id="app" v-cloak>
    <router-view></router-view>
  </div>
</template>
<script>
export default {
  created() {
    document.body.removeChild(document.getElementById("loader-wrapper")); // 加载页面完后移除加载动画
  },
  mounted() {
    // window.addEventListener("beforeunload", (e) => {
    //  debugger
    // });
    // window.addEventListener("unload", () => {
    //   debugger
    //   this._gap_time = new Date().getTime() - this._beforeUnload_time;

    // });
  },
};
</script>

<style lang="scss">
#app {
  height: 100%;
  width: 100%;
}
* {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}
[v-cloak] {
  display: none;
}
</style>
